﻿using Jinjia.Core.BaseInfrastructure.BaseModel;

namespace Jinjia.Approve.Entity.Entity
{
    ///<summary>
    ///分销手动建单表
    ///表erpa_manual_trade_tbl的实体类
    ///</summary>
    public class erpa_manual_trade_tbl : BaseEntity
    {
        /// <summary>
        /// ERP内订单编号
        /// </summary>
        public string trade_no { get; set; }

        /// <summary>
        /// 订单类型（0：虚拟分销；1：一般分销(FX|线下转帐、FX|香港芳星（一级代理）、FX|香港芳星普通（辅助系统）、缙嘉集合店（小程序））
        /// </summary>
        public sbyte trade_type { get; set; }

        /// <summary>
        /// 店铺编号
        /// </summary>
        public string shop_no { get; set; }

        /// <summary>
        /// 原始订单
        /// </summary>
        public string src_tids { get; set; }

        /// <summary>
        /// 仓库编码
        /// </summary>
        public string warehouse_no { get; set; }

        /// <summary>
        /// 订单状态（0:编辑中;1:预定 虚拟单使用;5:业务取消;10:待客审;15:客审驳回;20:待财审;25:财审驳回;30:已审核35:推单失败;40:待发货;50:已发货;60:已完成）
        /// </summary>
        public string trade_status { get; set; }

        /// <summary>
        /// 下单时间
        /// </summary>
        public System.DateTime trade_time { get; set; }

        /// <summary>
        /// 客户网名
        /// </summary>
        public string buyer_nick { get; set; }

        /// <summary>
        /// 分销客户ID
        /// </summary>
        public int customer_id { get; set; }

        /// <summary>
        /// 小程序用户ID
        /// </summary>
        public int minimall_user_id { get; set; }

        /// <summary>
        /// 收件人
        /// </summary>
        public string receiver_name { get; set; }

        /// <summary>
        /// 收件电话
        /// </summary>
        public string receiver_mobile { get; set; }

        /// <summary>
        /// 收件地址
        /// </summary>
        public string receiver_address { get; set; }

        /// <summary>
        /// 收货省
        /// </summary>
        public string receiver_province { get; set; }

        /// <summary>
        /// 收货市
        /// </summary>
        public string receiver_city { get; set; }

        /// <summary>
        /// 收货区
        /// </summary>
        public string receiver_district { get; set; }

        /// <summary>
        /// 邮编
        /// </summary>
        public string receiver_zip { get; set; }

        /// <summary>
        /// 收件省市区
        /// </summary>
        public string receiver_area { get; set; }

        /// <summary>
        /// 结算类型（0：先款后货，1：先货后款）
        /// </summary>
        public string settlement_type { get; set; }

        /// <summary>
        /// 收款状态（0：未收款，10：部分收款待确认，20：收款待确认，30：部分收款，40：全部收款）
        /// </summary>
        public string receipt_confirm_status { get; set; }

        /// <summary>
        /// 商品金额
        /// </summary>
        public decimal goods_cost { get; set; }

        /// <summary>
        /// 邮费
        /// </summary>
        public decimal post_cost { get; set; }

        /// <summary>
        /// 优惠金额
        /// </summary>
        public decimal discount { get; set; }

        /// <summary>
        /// 实付金额
        /// </summary>
        public decimal paid { get; set; }

        /// <summary>
        /// 币种
        /// </summary>
        public string currency_code { get; set; }

        /// <summary>
        /// 汇率
        /// </summary>
        public decimal exchange_rate { get; set; }

        /// <summary>
        /// 外币商品金额
        /// </summary>
        public decimal origin_goods_cost { get; set; }

        /// <summary>
        /// 外币邮费
        /// </summary>
        public decimal origin_post_cost { get; set; }

        /// <summary>
        /// 外币优惠金额
        /// </summary>
        public decimal origin_discount { get; set; }

        /// <summary>
        /// 外币总额
        /// </summary>
        public decimal origin_paid { get; set; }

        /// <summary>
        /// 打款截图
        /// </summary>
        public string pay_image_url { get; set; }

        /// <summary>
        /// 打款人
        /// </summary>
        public string payer_name { get; set; }

        /// <summary>
        /// 打款帐户
        /// </summary>
        public string pay_account_no { get; set; }

        /// <summary>
        /// 打款类型（1：支付宝；2：银行账户）
        /// </summary>
        public string pay_type { get; set; }

        /// <summary>
        /// 收款方
        /// </summary>
        public string payee_name { get; set; }

        /// <summary>
        /// 我方银行帐户
        /// </summary>
        public string payee_account_no { get; set; }

        /// <summary>
        /// 订单备注
        /// </summary>
        public string remark { get; set; }

        /// <summary>
        /// 审核意见
        /// </summary>
        public string review_comments { get; set; }

        /// <summary>
        /// 推送失败原因
        /// </summary>
        public string push_message { get; set; }

        /// <summary>
        /// logisticsId
        /// </summary>
        public string logistics_id { get; set; }

        /// <summary>
        /// 物流编码
        /// </summary>
        public string logistics_code { get; set; }

        /// <summary>
        /// 物流单号
        /// </summary>
        public string logistics_no { get; set; }

        /// <summary>
        /// 物流类型
        /// </summary>
        public short logistics_type { get; set; }

        /// <summary>
        /// 业务员ID
        /// </summary>
        public int salesman_user_id { get; set; }

        /// <summary>
        /// 邮寄类型 1到付 2寄付 3包邮
        /// </summary>
        public sbyte freight_type { get; set; }

        /// <summary>
        /// 客户主体ID
        /// </summary>
        public int company_id { get; set; }

        /// <summary>
        /// 打印备注
        /// </summary>
        public string printing_remark { get; set; }

        /// <summary>
        /// 是否强制财审 0 否 1是
        /// </summary>
        public int is_compel { get; set; }

        /// <summary>
        /// 是否已自动财审扫描 0 否 1是
        /// </summary>
        public int is_automatic_scanning { get; set; }

        /// <summary>
        /// 强审说明备注
        /// </summary>
        public string compel_remark { get; set; }

        /// <summary>
        /// 财审人
        /// </summary>
        public int finance_user_id { get; set; }

        /// <summary>
        /// 财审时间
        /// </summary>
        public System.DateTime finance_time { get; set; }

        /// <summary>
        /// 订单商品总毛重
        /// </summary>
        public decimal total_gross_weight { get; set; }

        /// <summary>
        /// 配货优惠金额
        /// </summary>
        public decimal gift_discount_amount { get; set; }

        /// <summary>
        /// 配货优惠金额
        /// </summary>
        public decimal origin_gift_discount_amount { get; set; }

        /// <summary>
        /// 最优运费金额(原币)
        /// </summary>
        public decimal origin_minpost_cost { get; set; }

        /// <summary>
        /// 最优运费金额(人民币)
        /// </summary>
        public decimal minpost_cost { get; set; }

        /// <summary>
        /// 最优物流编码
        /// </summary>
        public string min_logistics_code { get; set; }

        /// <summary>
        /// 暂不处理：1-不处理，0-处理
        /// </summary>
        public sbyte notdispose { get; set; }

        /// <summary>
        /// 批量导单主表id
        /// </summary>
        public int order_id { get; set; }

        /// <summary>
        /// 批量导单客户订单号
        /// </summary>
        public string client_order { get; set; }

        /// <summary>
        /// 源单类型,默认0; 0:正常分销单;1:内部交易采购订单分销单;2:一盘货内部交易采购订单分销单;
        /// </summary>
        public sbyte src_order_type { get; set; }
    }
}